<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
  div{
    width: 100px;
    height: 100px;
    border: 1px solid red;
    overflow: scroll;
  }
  img{
    /*行内元素垂直对齐方式:top midde bottom baseline*/
    vertical-align: bottom;
  }
</style>
<body>
<input type="text"><img src="a780da93affa09cd5a2aade7a4b7fe6.jpg" width="100" alt="">
<div>
  <img src="a780da93affa09cd5a2aade7a4b7fe6.jpg" alt="">
</div>

</body>
</html>